<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
  <form action="http://www.baidu.com">
    用户名 <input type="text" class="int"name="username">   <br>
    密码 &emsp; <input type="password" class="iny" name="password"><br>
    <input type="submit">
  </form>
<script src="../../../../../../../万能初始化代码/AJax-axios/axios.js"></script>
<script src="../../../../../../../万能初始化代码/js/jquery/jquery.js"></script>
<script>
    $("form").on("submit",function(e){
        e.preventDefault();
      let a=  $("form").serialize()
console.log(a);
        axios({
            method:"POST",
           url: "http://www.liulongbin.top:3006/api/form",
           data:a
              
           
        }).then(({data:res})=>{
            console.log(res);
        })
    })
</script>
</body>
</html>